package com.hydra.apt.util;

import javax.annotation.processing.Messager;
import javax.tools.Diagnostic;

/**
 * Created by Hydra.
 *
 */
public class AptLog {

    private Messager mMessager;

    public AptLog(Messager messager) {
        this.mMessager = messager;
    }

    public void i(CharSequence tag, CharSequence info) {
        mMessager.printMessage(Diagnostic.Kind.NOTE, tag + " : " + info);
    }

    public void w(CharSequence tag, CharSequence info) {
        mMessager.printMessage(Diagnostic.Kind.WARNING, tag + " : " + info);
    }

    public void e(CharSequence tag, CharSequence info) {
        mMessager.printMessage(Diagnostic.Kind.ERROR, tag + " : " + info);
    }
}
